package com.yxx.sys.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: YuXinXin
 * @Description:
 * @Date:Created in 21:56 2020/8/12
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result {
  private Integer code;
  private String msg;

  public static final Result LOGIN_SUCCESS=new Result(Constast.OK,"登陆成功");
  public static final Result LOGIN_ERROR_PASS=new Result(Constast.ERROR,"登陆失败，用户名或者密码错误");
  public static final Result LOGIN_ERROR_CODE=new Result(Constast.ERROR,"登陆失败，验证码错误");

  public static final Result ADD_SUCCESS=new Result(Constast.OK,"增加成功");
  public static final Result ADD_REEOR=new Result(Constast.OK,"增加失败");

  public static final Result DELETE_SUCCESS=new Result(Constast.OK,"删除成功");
  public static final Result DELETE_REEOR=new Result(Constast.OK,"删除失败");

  public static final Result UPDATE_SUCCESS=new Result(Constast.OK,"更新成功");
  public static final Result UPDATE_REEOR=new Result(Constast.OK,"更新失败");

  public static final Result RESET_SUCCESS=new Result(Constast.OK,"密码重置成功");
  public static final Result RESET_REEOR=new Result(Constast.OK,"密码重置失败");

  public static final Result DISPATCH_SUCCESS=new Result(Constast.OK,"权限分配成功");
  public static final Result DISPATCH_REEOR=new Result(Constast.OK,"权限分配失败");
}
